let prefixUrl = 'http://47.117.185.231/' //前缀
let suffixUrl = '' //后缀
let trialVersion = '' //是否是试用版本
let prefixUrlImg = 'https://cdsa.stec.sh.cn/' //城盾数字化图片icon地址

// #ifdef APP-PLUS || H5
console.log(process.env);
if (process.env.NODE_ENV === 'production') {
	if (process.env.VUE_APP_NAME === '城盾隧安') {
		//正式环境
		// prefixUrl = 'https://cdsa.stec.sh.cn/'
		suffixUrl = "cdsa"
	} else if (process.env.VUE_APP_NAME === '试用版') {
		//试运行环境
		// prefixUrl = 'http://139.9.41.8/'
		suffixUrl = "emerge"
		trialVersion = "试用版"
	} else {
		// prefixUrl = 'http://172.168.20.157/'
		suffixUrl = "cdsa"
		trialVersion = "测试"
	}
} else {
	// prefixUrl = 'http://172.168.20.157/'
	// prefixUrl = 'http://47.117.185.231/'
	suffixUrl = "cdsa"
	trialVersion = "测试"
}

let VIDEO_URL = prefixUrl + "stec-platform-doc/doc/" // 回显视频url
// #endif

// #ifdef MP-WEIXIN
// prefixUrl = 'https://cdsa.stec.sh.cn/'
// prefixUrl = 'http://47.117.185.231/'
suffixUrl = "cdsa"
// trialVersion = "试用版"
let VIDEO_URL = prefixUrl + "stec-platform-doc/img/" // 回显视频url
// #endif

export default {
	DOWNLOAD_FILE_URL: prefixUrl + "stec-platform-doc/doc/", // 下载文件 视频url
	IMG_FILE_URL: prefixUrl + "stec-platform-doc/img/", // 回显图片url
	VIDEO_URL: VIDEO_URL, // 回显视频url
	BASE_URL: prefixUrl + suffixUrl + "-web/", // 接口 基地址
	RECORD_BASE_URL: "https://cdsa.stec.sh.cn/cdsa-web/", // 语音url
	SHARE_URL: prefixUrl + suffixUrl + "-link/#/", // 分享外链 url
	DOWNLOAD_IMG_URL: prefixUrl + "stec-platform-doc/img/",
	TRIAL_VERSION: trialVersion,
	LINKIMG_URL: prefixUrlImg + suffixUrl + "-link/static/img/app_Image/",
	PUB_KEY: "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCBPocDDnLmcFhcUy3grE+WCN2AvOPEpiQfqwGlaOSHzIa15ln9UbYeeOKLMKSMzsRbdGGKwjAgNbx3Y2IydwZHxGkaNe1vCwKzqzC3qXMHjHPCcOv325V8PYrkm8K5tOUYjCr7afbgzKVmnIQ2xyGQzxeKb78jBRVK+21WXOmaqQIDAQAB"
}